<template>
	<view class="pay">
		<view class="storename">
			<uni-icons type="left" size="20" color="#ffffff" class="back" @click="backFun"></uni-icons>
			<image
				src="https://images.pexels.com/photos/2313686/pexels-photo-2313686.jpeg?auto=compress&cs=tinysrgb&w=600"
				mode="aspectFill" style="border-radius: 20rpx;"></image>
			<view class="desc">
				<view class="name">
					某某餐厅
				</view>
				<view class="welcome">
					欢迎光临某某餐厅，祝您用餐愉快！
				</view>
			</view>
		</view>

		<view class="list">
			<uni-notice-bar showIcon text="某某餐厅提醒您,请确认您的点餐!"></uni-notice-bar>

			<view class="item" v-for="(item,index) in 4" :key="index">
				<image
					src="https://images.pexels.com/photos/2313686/pexels-photo-2313686.jpeg?auto=compress&cs=tinysrgb&w=600"
					mode=""></image>
				<view class="desc">
					<view class="tt">
						辣椒炒肉
					</view>
					<view class="ms">
						口感美味，营养丰富
					</view>
					<view class="price">
						￥12.00
					</view>
				</view>

				<image class="del" src="../../static/del.png" mode="" @click="delFun()"></image>
			</view>

		</view>



		<view class="he">
			<view class="tt">
				合计：<span class="jg">￥26.00</span>
			</view>

			<view class="yh">
				优惠：￥22.00
			</view>

			<view class="btn">
				结算
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			delFun() {
				uni.showToast({
					title: "点击删除",
					icon: "none"
				})
			},
			backFun() {
				uni.navigateTo({
					url: "/pages/list/list"
				})
			},
		}
	}
</script>

<style scoped>
	.pay {
		min-height: calc(100vh - 88rpx);
		background-color: #f5f5f5;
		padding: 0rpx 0rpx 180rpx;
	}

	.list {
		padding: 20rpx;
	}

	.list .item {
		position: relative;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		margin-bottom: 20rpx;
		background-color: #ffffff;
		padding: 10rpx;
		border-radius: 10rpx;
	}

	.item image {
		width: 166rpx;
		height: 166rpx;
		margin-right: 30rpx;
		border-radius: 10rpx;
	}

	.item .del {
		position: absolute;
		right: 20rpx;
		top: 50%;
		transform: translateY(-50%);
		width: 40rpx;
		height: 40rpx;
	}

	.item .desc .tt {
		font-size: 32rpx;
		font-weight: 700;
		color: #151515;
		margin-bottom: 15rpx;
	}

	.item .desc .ms {
		font-size: 26rpx;
		color: #86909C;
		margin-bottom: 25rpx;
	}

	.item .desc .price {
		font-size: 32rpx;
		color: darkred;
	}

	.he {
		position: fixed;
		bottom: 50rpx;
		left: 50%;
		transform: translateX(-50%);
		width: 96%;
		height: 150rpx;
		background-color: #ffffff;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10rpx 30rpx;
		box-sizing: border-box;
		border-radius: 20rpx;
	}

	.jg {
		font-size: 38rpx;
		color: darkred;
	}

	.yh {
		color: #86909C;
		font-size: 28rpx;
	}

	.btn {
		width: 140rpx;
		line-height: 60rpx;
		background-color: #ff5500;
		text-align: center;
		font-size: 30rpx;
		color: #f5f5f5;
		border-radius: 30rpx;
	}

	.title {
		font-size: 32rpx;
		color: #464646;
		margin: 10rpx 0;
		font-weight: 700;
		background-color: rgba(0, 170, 127, 0.16);
		border-radius: 20rpx;
		padding: 6rpx 10rpx;
	}

	.storename {
		width: 100%;
		background-color: #ffffff;
		box-shadow: 2rpx 2rpx 20rpx #e5e5e5;
		padding: 140rpx 25rpx 10rpx;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		background: url("https://images.pexels.com/photos/302457/pexels-photo-302457.jpeg?auto=compress&cs=tinysrgb&w=600") no-repeat;
		background-size: cover;
	}

	.storename image {
		width: 150rpx;
		height: 150rpx;
		margin-right: 20rpx;
	}

	.storename .name {
		font-size: 60rpx;
		color: #ffffff;
		font-weight: 700;
		margin-bottom: 10rpx;
		font-family: Arial, Helvetica, sans-serif;
	}

	.storename .info {
		font-size: 26rpx;
		color: #ffffff;
		margin-bottom: 40rpx;
		display: flex;
		align-items: center;
	}


	.storename .welcome {
		width: 100%;
		font-size: 24rpx;
		color: #ffffff;
		padding: 10rpx 0rpx;
		border-radius: 6rpx;
	}

	.back {
		position: absolute;
		top: 50rpx;
		left: 30rpx;
		background-color: rgba(0, 0, 0, 0.6);
		padding: 5rpx;
		border-radius: 6rpx;
	}
</style>